
import json

class phone:

    def __init__(self, name, age, sex, hobby):
        self.name = name
        self.age = age
        self.sex = sex
        self.hobby = hobby

    def show(self):
        print(self.name, self.age, self.sex, self.hobby)

def query():
    print("方法")

if __name__ == '__main__':
    list = ["&&", "||", "<>", "=="]
    dict = {
        "1":"one",
        "2":"two",
        "3":"three",
        "list":list,
        "dict":{
            "一":"golang",
            "二":"java",
            "三":"rust",
            "四":"python"
        }
    }

    print("list：", list)
    print("dict：", dict)

    query()

    p = phone("python3小老弟", 25, "编程语言", "挑战java")
    p.show()
    print("phone：", p)
    print("json：", json.dumps(p))
